#include"Vehicle.h"
#include"File.h"
#include<vector>

void Vehicle_test()
{
	vector<Vehicle*> garage;
	garage.push_back(new Car());
	garage.push_back(new Bike());
	for (auto e : garage)
	{
		e->Start();
	}

	vector<Vehicle*> garage_clone;
	for (auto c : garage)
	{
		garage_clone.push_back(c->Clone());
	}
	for (auto c : garage_clone)
	{
		c->Start();
	}
}

void File_test()
{
	vector<File*> files;
	files.push_back(new TextFile());
	files.push_back(new ImageFile());
	for (auto f : files)
	{
		f->Open();
		f->Close();
	}
}

int main()
{
	//Vehicle_test();
	File_test();
	return 0;
}
